package cn.digitalgd.directoryTree.pojo.po;

import cn.digitalgd.directoryTree.pojo.entity.DirectoryEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ Author：浅汐
 * @ Date：2024/7/16
 * @ Desc：
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("directory")
public class DirectoryPO {
    /** 目录ID*/
    @TableId
    private Integer id;
    /** 目录名称*/
    private String name;
    /** 目录级别（最多3级）*/
    private Integer level;
    /** 父目录ID*/
    private Integer parentId;
    /** 序位号*/
    private Long sort;
    /** 子目录*/
    @TableField(exist = false)
    private List<DirectoryPO> child;
}
